package com.jy.rhin.facade.ws.basic.notification;

import org.oasis_open.docs.wsn.b_2.Notify;

import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;

import static com.jy.rhin.config.NamespaceConstants.*;

/**
 * @Description: 基础通知
 * @Author: lww
 * @Date: 2022/7/6
 */
@WebService(targetNamespace = NS_B2, name = "NotificationConsumer")
//@XmlSeeAlso({org.oasis_open.docs.wsrf.bf_2.ObjectFactory.class, org.oasis_open.docs.wsn.b_2.ObjectFactory.class, org.oasis_open.docs.wsn.t_1.ObjectFactory.class})
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface NotificationConsumer {

    /**
     * 通知
     * @param notify
     */
    @WebMethod(operationName = "Notify")
    @Oneway
    void notify(@WebParam(partName = "Notify", name = "Notify", targetNamespace = NS_B2)
                org.oasis_open.docs.wsn.b_2.Notify notify
    );
}
